/**
  * <br>JAVACC DEMO 1.0<br>
  * <br>
  * @Package com.apache.dict.dao
*/
package com.apache.dict.dao;

import com.apache.database.db.DaoImpl;

/**
  * description: 数据字典的Dao
  * @author Hou DaYu 创建时间：上午08:27:06
  */
public class DataCateDaoImpl extends DaoImpl {

	/* (non-Javadoc)
	 * @see com.apache.database.db.IDao#getSql(int)
	 */
	public String getSql(int type) {
		String sql = "";
		switch (type) {
		case 1:
			sql = " from DataCate t where 1=1 ";
			break;
		case 2:
			sql = "select count(*) from DataCate t where 1=1 ";
			break;
		case 3:
			sql = "select count(*) from DataCate t where t.cateEname =:cateEname ";//判断科目标识是否唯一
			break;
		case 4:
			sql = "";
			break;
		case 5:
			sql = "";
			break;
		case 6:
			sql = "";
			break;
		default:
			sql = "";
		}
		return sql;
	}

	/* (non-Javadoc)
	 * @see com.apache.database.db.IDao#initSystemCache()
	 */
	public void initSystemCache() {
		// TODO Auto-generated method stub

	}

}
